package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.dao.GoodsCombDetailDao;
import com.yuhanginfo.modules.sys.entity.GoodsCombDetail;

/**
 * 套餐详情Service
 * @author lvls
 * @version 2017-11-15
 */
@Service
@Transactional(readOnly = true)
public class GoodsCombDetailService extends CrudService<GoodsCombDetailDao, GoodsCombDetail> {

	@Autowired
	private GoodsCombDetailDao goodsCombDetailDao;
	
	
	
	@Transactional(readOnly = false)
	public void save(GoodsCombDetail goodsCombDetail) {
		super.save(goodsCombDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(GoodsCombDetail goodsCombDetail) {
		super.delete(goodsCombDetail);
	}

	public List<GoodsCombDetail> selectByGoodsComboId(String id) {
		return goodsCombDetailDao.selectByGoodsComboId(id);
	}
	
}